package initialization

import (
	common "common/database"
	"ticket_srv/internal/model/dao"
)

func init() {
	ZapInit()
	Init()
	MySQLInit()
	RedisInit()
}

func ZapInit() {
	common.ZapInit()
}

func Init() {
	common.Init("../appConfig.yaml")
}

func MySQLInit() {
	var sli []interface{}
	sli = append(sli, &dao.Ticket{}, &dao.TicketSeat{})
	common.MySQLInit(sli)
}

func RedisInit() {
	common.RedisInit()
}
